package oop.ex2.enums;

import java.util.regex.Pattern;

public enum GeneralEnum {

    SEMICOLON(".+;\\s*$"),
    OPEN_BRACKETS(".+\\{\\s*$"),
    CLOSE_BRACKETS(".*\\}\\s*$");
    private Pattern enumPattern;

    private GeneralEnum(String regex) {
        enumPattern = Pattern.compile(regex);
    }

    public Pattern getEnumPattern() {
        return enumPattern;
    }
}
